package org.example.dao;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
@Scope
@Component("bookDa")
public class BookDaoImpl implements BookDao{

    @Override
    public void save() {
        System.out.println("你好!");
    }
    @PostConstruct
    public void Hello(){
        System.out.println("hello");

    }
}
